package com.zshan.clinic.web.entity.shanghe;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class ShangHeResp {

    private int recode;   // 1000/2000/4000/5000
    private String remsg;

    public static ShangHeResp ok() { return new ShangHeResp(2000, "success"); }
    public static ShangHeResp bad(String msg) { return new ShangHeResp(4000, msg); }
    public static ShangHeResp fail(String msg) { return new ShangHeResp(5000, msg); }
    public static ShangHeResp deny(String msg) { return new ShangHeResp(1000, msg); }
}
